<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">
	<ui:composition template="/templates/padrao.xhtml">
		<ui:define name="barraTitulo">Impress&atilde;o de Processos por Comarca</ui:define>
		<ui:define name="conteudo">
			<p:tabView>
				<p:tab title="Consulta">
					<h:form  id="form">
						<h:panelGrid columns="2" columnClasses="width150 alinhaDir, width500">
						</h:panelGrid>
						<h:panelGrid columns="2" columnClasses="width140 alinhaDir, width500">
						
							<h:column >
								<h:outputText value="Comarca:" styleClass="select" />
							</h:column>
							<h:column >
								<h:selectOneMenu value="#{controleImpressaoProcessoComarca.comarca}" >  
								    <f:selectItem itemLabel="[Todos]" itemValue="#{controleImpressaoProcessoComarca.comarcaSelecione}"/>
				                    <f:selectItems value="#{controleImpressaoProcessoComarca.comarcas}" var="comarca" itemLabel="#{comarca.descricao}" itemValue="#{comarca}"/>
				                    <f:converter converterId="comarcaConverte"/>
								</h:selectOneMenu>
							</h:column>
						
							<h:outputLabel value=""/>
							<h:column headerClass="alinhaDir" >
								
								<h:commandLink action="#{controleImpressaoProcessoComarca.limpar}">
									<h:graphicImage url="/images/botoes/btnLimpar.png" class="btnAcoes"/>
								</h:commandLink>
								<h:commandLink action="#{controleImpressaoProcessoComarca.imprimir}" target="_blank">
									<h:graphicImage url="/images/botoes/btnImprimir.png" class="btnAcoes"/>
								</h:commandLink>
							</h:column>
						</h:panelGrid>
					</h:form>
				</p:tab>
			</p:tabView>
		</ui:define>
	</ui:composition>
</html>